#include<stdlib.h>
#include<iup.h>

int btn_exit_cb(Ihandle *self){
	IupMessage("Hello Msg", "Hello from iup");
	return IUP_CLOSE;
}

int main(int argc,char **argv){
	Ihandle *dlg, *button, *vbox;
	IupOpen(&argc, &argv);
	button = IupButton("Ok", NULL);
	vbox = IupVbox(button, NULL);
	dlg = IupDialog(vbox);
	IupSetAttribute(dlg, "TITLE", "3_interaction");
	
	IupSetCallback(button, "ACTION", (Icallback) btn_exit_cb);
	
	IupShowXY(dlg, IUP_CENTER, IUP_CENTER);
	
	IupMainLoop();
	IupClose();
	return EXIT_SUCCESS;
}
